<template>
  <div class="fromfooter">
    <div class="header">
      <h3>监控报警</h3>
    </div>

    <div class="container">
      <div class="fromleft">
        <div class="radius">
          <span></span>
          <span>任务失败报警</span>
        </div>

        <div class="formlist" :style="{borderLeft:arr[index]}" v-for="(item,index) in 5" :key="index">
          <span>任务{{index}}</span>
        </div>
      </div>
      <div class="center"></div>
      <div class="fromright">
          <div class="radius">
          <span></span>
          <span>数据推送时长报警</span>
        </div>

        <div class="formlist" :style="{borderLeft:arr[index]}" v-for="(item,index) in 5" :key="index">
          <span>任务{{index}}</span>
        </div>
      </div>
    </div>
  </div>
</template> 

<script>
export default {
  data() {
    return {
        arr:["4px solid #32d5b8","4px solid #edbb73","4px solid #df6463","4px solid #5eb3e9","4px solid #000"]
    };
  },
  //生命周期 - 创建完成
  created() {},

  //DOM挂载完毕
  mounted() {},
  methods: {}
};
</script>

<style lang='less' scoped>
.fromfooter {
  padding: 18px 30px 20px 30px;
  background-color: #fff;
  box-shadow: 0 3px 2px #ccc;
  .header {
    height: 72px;
    display: flex;
    align-items: center;
    h3 {
      height: 32px;
      line-height: 32px;
      color: #fff;
      text-align: center;
      width: 120px;
      border-radius: 5px;
      // background-image: linear-gradient(to right, #00a8ef 0%, #02b3e6 100%);
      background-image: linear-gradient(90deg, #00a7f0 0%, #0adcc3 100%);
    }
  }
  .container {
    display: flex;
     border-radius: 5px;
    .fromleft {
      flex: 1;
      border: 0.5px solid #ddd;
      padding: 14px 14px 14px 20px;
      box-shadow: 0 2px 2px #ccc;
      .radius{
          display: flex;
          align-items: center;
          height: 52px; 
          span{
              &:nth-of-type(1){
                  width: 14px;
                  height: 14px;
                  border-radius: 50%;
                  background-color: #03ddb6;
              }
              &:nth-of-type(2){
                  font-size: 16px;
                  margin-left: 10px;
              }
          }
      }
      .formlist{
          height: 56px;
          margin-bottom: 14px;
          background-color: #efefef;
          display: flex;
          padding-left: 12px;
          align-items: center;
          border-left:3px solid #32d5b8;
          &:hover{
            background-color: #ddd;
            color: #3498ff;
            font-weight: 600;
            cursor: pointer;
          }
          span{
          font-size: 14px;
        }
      }

    }
    .center{
        width: 20px;
    }
    .fromright{
        flex:1;
        padding-left: 12px;
        align-items: center;
        
    }
  }

   .fromright {
      flex: 1;
      border: 0.5px solid #ddd;
      padding: 14px 14px 14px 20px;
      box-shadow: 0 2px 2px #ccc;
      .radius{
          display: flex;
          align-items: center;
          height: 52px;
          
          span{
              &:nth-of-type(1){
                  width: 14px;
                  height: 14px;
                  border-radius: 50%;
                  background-color: #03ddb6;
              }
              &:nth-of-type(2){
                  font-size: 16px;
                  margin-left: 10px;
              }
          }
      }
      .formlist{
          height: 56px;
          margin-bottom: 14px;
          background-color: #efefef;
          display: flex;
          padding-left: 12px;
          align-items: center;
          border-left:3px solid #32d5b8;
          &:hover{
            background-color: #ddd;
            color: #3498ff;
            font-weight: 600;
            cursor: pointer;
          }
          span{
          font-size: 14px;
        }
      }

    }
    .center{
        width: 20px;
    }
    .fromright{
        flex:1;
        padding-left: 12px;
        align-items: center;
        
    }
}
</style>